<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('public/header', TEMPLATE_INCLUDEPATH)) : (include template('public/header', TEMPLATE_INCLUDEPATH));?>

<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('public/comhead', TEMPLATE_INCLUDEPATH)) : (include template('public/comhead', TEMPLATE_INCLUDEPATH));?>
<link rel="stylesheet" type="text/css" href="../addons/yzzc_sun/template/public/ygcsslist.css">
<link rel="stylesheet" type="text/css" href="../addons/yzzc_sun/template/public/zoomify.min.css">

<style type="text/css">
</style>
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>
    <li class="active"><a href="javascript:void(0);">驾驶员信息列表</a></li>
</ul>

<div class="row ygrow">
    <form action="" method="get" class="col-md-4">
        <input type="hidden" name="c" value="site" />
        <input type="hidden" name="a" value="entry" />
        <input type="hidden" name="m" value="yzzc_sun" />
        <input type="hidden" name="do" value="user_drive" />

        <input type="hidden" name="token" value="<?php  echo $_W['token'];?>"/>

    </form>
</div>
<div class="main">
    <div class="panel panel-default">

        <div class="panel-heading">
            驾驶员信息列表
        </div>

        <div class="panel-body" style="padding: 0px 15px;">

            <div class="row">

                <table class="yg5_tabel col-md-12">
                    <tr class="yg5_tr1">
                        <!-- <td class="col-md-1">用户id</td> -->
                        <td class="col-md-2">姓名</td>
                        <td class="col-md-2">电话</td>
                        <td class="col-md-2">身份证</td>
                        <td class="col-md-2">驾驶证</td>
                        <td class="col-md-2">自拍照</td>
                        <td class="col-md-2">录入时间</td>
                        <td class="col-md-1">操作</td>
                    </tr>

                    <?php  if(is_array($list)) { foreach($list as $row) { ?>

                    <tr class="yg5_tr2">

                        <!-- <td ><?php  echo $row['uid'];?></td> -->
                        <td><?php  echo $row['name'];?></td>
                        <td><?php  echo $row['phone'];?></td>

                        <td><?php  echo $row['sfcode'];?><br>
                            <?php  if($row['sfimg']) { ?>
                            <img src="<?php  echo tomedia($row['sfimg']);?> " alt="" style='height:100px'>  <img src="<?php  echo tomedia($row['sfimgfan']);?> " alt="" style='height:100px'>
                            <?php  } ?>
                        </td>
                        <td>
                        <?php  if($row['jsimg']) { ?>
                            <img src="<?php  echo tomedia($row['jsimg']);?> " alt="" style='height:100px'>  <img src="<?php  echo tomedia($row['jsimgfan']);?> " alt="" style='height:100px'>
                        <?php  } ?>
                        </td>
                        <td>
                        <?php  if($row['zpimg']) { ?>
                            <img src="<?php  echo tomedia($row['zpimg']);?> " alt="" style='height:100px'>
                        <?php  } ?>
                        </td>
                        <td><?php  echo $row['time'];?></td>
                        <td><a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal<?php  echo $row['id'];?>">
                                <span class="fa fa-trash-o"></span>
                                <span class="bianji">删除
                                    <span class="arrowdown"></span>
                                </span>
                            </a></td>
                        <div class="modal fade" id="myModal<?php  echo $row['id'];?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                        <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">提示</h4>
                                    </div>
                                    <div class="modal-body" style="font-size: 20px">
                                        确定删除么？
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                        <a href="<?php  echo $this->createWebUrl('user_drive', array('op' => 'delete', 'id' => $row['id'],'uid'=>$row['uid']))?>" type="button" class="btn btn-info" >确定</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </tr>
                    <?php  } } ?>
                    <?php  if(empty($list)) { ?>
                    <tr class="yg5_tr2">

                        <td colspan="12">

                            暂无驾驶员信息

                        </td>

                    </tr>

                    <?php  } ?>





                </table>

            </div>

        </div>

    </div>

</div>

<div class="text-right we7-margin-top">

    <?php  echo $pager;?>

</div>




<script src="../addons/yzzc_sun/template/public/zoomify.min.js"></script>

<!-- <?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?> -->

<script type="text/javascript">

    $(function(){
         $("#frame-11").show();
        $("#yframe-11").addClass("wyactive");

        $('.yg5_tr2 img').zoomify();

    })

</script>

